Class MyTrackFormatter

  • Direct Known Subclasses:
    MyCSVTrackFormatter, MyShortTrackFormatter

    public abstract class MyTrackFormatter
    extends java.lang.Object
    This class represents the concept of formatting a track. It has a single abstract method that is to be implemented by concrete subclasses which implement concrete formats of String representations of tracks.
    Version:
    234
    Author:
    TeM, JS
    Stage:
    ES04
    Introduced in:
    ExerciseSheet04
    Programming problem category:
    abstract class
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract java.lang.String format​(Track t)
      Creates a String representation for a Track.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MyTrackFormatter

        public MyTrackFormatter()
    • Method Detail

      • format

        public abstract java.lang.String format​(Track t)
        Creates a String representation for a Track.
        Parameters:
        t - the track to be formatted
        Returns:
        the formatted String representing the track
        Programming problem aspect:
        abstract method